<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Get textual country representation</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="gender-gender.construct.html">Gender\Gender::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="gender-gender.get.html">Gender\Gender::get</a></div>
 <div class="up"><a href="class.gender.html">Gender\Gender</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="gender-gender.country" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Gender\Gender::country</h1>
  <p class="verinfo">(PECL gender &gt;= 0.8.0)</p><p class="refpurpose"><span class="refname">Gender\Gender::country</span> &mdash; <span class="dc-title">Get textual country representation</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-gender-gender.country-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><strong>Gender\Gender::country</strong></span>
    ( <span class="methodparam"><span class="type">integer</span> <code class="parameter">$country</code></span>
   )</div>

  <p class="para rdfs-comment">
   Returns the textual representation of a country from a Gender class
   constant.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-gender-gender.country-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">country</code></em></dt>

    <dd>

     <p class="para">
      A country ID specified by a <a href="class.gender.html" class="classname">Gender\Gender</a> class
      constant.
     </p>
    </dd>

    
   </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-gender-gender.country-returnvalues">
   <h3 class="title">返回值</h3>
   <p class="para">
    Returns an array with the short and full names of the country on success
     或者在失败时返回 <strong><code>FALSE</code></strong>.
   </p>
 </div>


 <div class="refsect1 examples" id="refsect1-gender-gender.country-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-2406">
    <p><strong>Example #1 Using <span class="methodname"><strong>Gender\Gender::country()</strong></span></strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
$gender&nbsp;=&nbsp;new&nbsp;Gender\Gender;<br />var_dump($gender-&gt;country(Gender\Gender::BRITAIN));</span>
</code></div>
    </div>

    <div class="example-contents"><p>以上例程会输出：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
array(2) {
  &#039;country_short&#039; =&gt;
  string(2) &quot;UK&quot;
  &#039;country&#039; =&gt;
  string(13) &quot;Great Britain&quot;
}
</pre></div>
    </div>
   </div>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="gender-gender.construct.html">Gender\Gender::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="gender-gender.get.html">Gender\Gender::get</a></div>
 <div class="up"><a href="class.gender.html">Gender\Gender</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
